package com.demo.java.model.enums;

import lombok.Data;
import lombok.Getter;

@Getter
public enum ErrorCode {
    SUCCESS(10000, "success"),
    FAILED(20000, "failed");

    private Integer code;
    private String name;

    private ErrorCode(Integer code, String name) {
        this.code = code;
        this.name= name;
    }
}
